Skip to content

restore: snapwm txn_active zero#8940

Open
jvarela-jump wants to merge 1 commit intomainfrom
jvarela/snapwm-txn-active-zero
Open

restore: snapwm txn_active zero#8940
jvarela-jump wants to merge 1 commit intomainfrom
jvarela/snapwm-txn-active-zero

Conversation

@jvarela-jump
Copy link
Contributor

In snapwm, txn_active must be zeroed after txn_commit or txn_cancel, otherwise calling txn_begin during recovery would trigger the following line if FD_PARANOID was set:

FD_CRIT( !ctx->vinyl.txn_active, "txn_begin called while already in txn" );

Copilot AI review requested due to automatic review settings March 17, 2026 17:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Ensures snapwm vinyl transactional state is cleared after a transaction completes so that recovery paths can safely call txn_begin under FD_PARANOID without tripping “already in txn” assertions.

Changes:

  • Clear ctx->vinyl.txn_active after fd_snapwm_vinyl_txn_commit.
  • Clear ctx->vinyl.txn_active after fd_snapwm_vinyl_txn_cancel.

You can also share your feedback on Copilot code review. Take the survey.

@jvarela-jump jvarela-jump force-pushed the jvarela/snapwm-txn-active-zero branch from 37f41d1 to 0347066 Compare March 17, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants